//
//  FlowDetailViewController.h
//  NaRiLSVMT
//
//  Created by jmsre on 14-8-18.
//  Copyright (c) 2014年 helloyouth.org. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TopScreenView.h"
#import "RootScreenView.h"
#import "ACEDrawingView.h"



@class FlowDetailViewController;

@protocol FlowDetailViewDelegate <NSObject>

- (void)HandleNodePlayJumptoFlowPlay:(id)viewController ActionButton:(NSMutableDictionary *)playButtonDic;

@end

@interface FlowDetailViewController : UIViewController
{
    UIButton *allBtn;
}


Assign  id<FlowDetailViewDelegate>  delegateFlowDetail;


@property (weak, nonatomic) IBOutlet UIView *allScreenTopView;
@property (weak, nonatomic) IBOutlet UIButton *cyclesPlayButton;
@property (weak, nonatomic) IBOutlet UIButton *oncePlayButton;
@property (weak, nonatomic) IBOutlet UIButton *noticeInfoButton;
@property (weak, nonatomic) IBOutlet UIButton *actionButton;


@property (weak, nonatomic) IBOutlet UITextField *playInterval;

@property (weak, nonatomic) IBOutlet UIButton *allOperButton;

@property (weak, nonatomic) IBOutlet UIView *viewOfInfoAndAct;

@property (weak, nonatomic) IBOutlet UIView *viewOfPlay;

Assign  NSInteger onceplayFlag;
Assign  NSInteger arrowplayFlag;

- (IBAction)ActionOfallOper:(id)sender;

- (IBAction)cyclesPlayAction:(id)sender;
- (IBAction)oncePlayAction:(id)sender;
- (IBAction)noticeInfoAction:(id)sender;
- (IBAction)actionInfoAction:(id)sender;


//Strong  TopScreenView   *topScreenView;
//Strong  RootScreenView  *rootScreenView;


@property (weak, nonatomic) IBOutlet UIView *allScreenInNote;

@property (weak, nonatomic) IBOutlet UIView *flowDetailBottomView;


@property (weak, nonatomic) IBOutlet UIView *allNotesInView;

@property (strong, nonatomic)  UIView *textFiledViewonce;
@property (strong, nonatomic)  UIView *textFiledViewarrow;

@property (weak, nonatomic) IBOutlet UIButton *backButton;

@property (weak, nonatomic) IBOutlet UIButton *expandButton;

@property (strong, nonatomic) NSDictionary *dataDic;

@property (assign, nonatomic) NSInteger index;


- (IBAction)backAction:(id)sender;

- (IBAction)expandAction:(id)sender;


@property (weak, nonatomic) IBOutlet UILabel *flowNameLab;



//Strong  NSMutableArray  *receiveFlowDetailData;//所有的节点信息
//Strong  NSMutableArray  *firstNodeData;//第一个节点详细信息
//Strong  NSMutableArray  *allNodeData;//所有节点信息，多维数组


Strong  NSMutableArray  *screenNameArr;//某个节点的屏幕名数组
Copy    NSString    *flowName;//选择的流程名
//Copy    NSString    *intervalPlayTime;


Copy  NSString   *oldIndex;//投屏的前一个节点的index
Copy NSString *nowIndex;

Strong  UIView  *pannedView;//投屏所用到的view;
Strong  UIView  *panedViewInView;//投屏所用到的view;



Strong ACEDrawingView *aceDrawView;    //交互的view
//投屏前:存放某个流程中所有节点中，每个节点的某个屏幕的 一维数组
Strong  NSMutableArray  *allNodeOneScreenArr;
//投屏后:



@end



